package com.ganzalang.gmall.gmallfreemarker.demo.db;

import com.ganzalang.gmall.gmallfreemarker.demo.entity.UserDemoEntity;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class UserDb {

    private static List<UserDemoEntity> userDemoEntities = new ArrayList<>();
    public static final String USERNAME = "ganzalang";
    public static final String PASSWORD = "123";
    static {
        UserDemoEntity entity1 = new UserDemoEntity();
        entity1.setId(1001L);
        entity1.setUsername(USERNAME);
        entity1.setPassword(PASSWORD);
        userDemoEntities.add(entity1);
    }
    public static List<UserDemoEntity> listUsers() {
        return userDemoEntities;
    }


}
